package com.siwei.mes.service.experiment;

import com.github.pagehelper.PageInfo;
import com.siwei.mes.common.query.PageQuery;
import com.siwei.mes.entity.experiment.ExperimentSampleSmoke;
import com.siwei.mes.entity.experiment.concrete.KsdjSmoke;
import com.siwei.mes.entity.experiment.concrete.UpdateKsdjSmoke;

import java.util.List;

/**
 * 试验台账抽样(ExperimentSampleSmoke)表服务接口
 *
 * @author linzi
 * @since 2023-12-28 20:47:31
 */
public interface ExperimentSampleSmokeService {

    /**
     * 新增
     *
     * @param entity
     * @return
     */
    Long create(ExperimentSampleSmoke entity);

    /**
     * 修改
     *
     * @param entity
     */
    void update(ExperimentSampleSmoke entity);

    /**
     * 删除
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 获取所有分组  分页
     *
     * @param query
     * @return
     */
    PageInfo<ExperimentSampleSmoke> getPage(PageQuery<ExperimentSampleSmoke, ExperimentSampleSmoke> query);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    ExperimentSampleSmoke loadById(Long id);

    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentSampleSmoke> getAll(ExperimentSampleSmoke entity);

    /**
     * 获取抗渗记录
     *
     * @param experimentId 试验台账id
     * @return
     */
    List<KsdjSmoke> getKsDetail(Long experimentId);

    /**
     * 修改抗渗记录
     *
     * @param updateKsdjSmoke
     */
    void updateKsDetail(UpdateKsdjSmoke updateKsdjSmoke);
}
